package org.javaboy.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("account")
public interface AccountService {
    @PostMapping("/deduce")
    Map<String, Object> deduce(@RequestParam("account") Integer account, @RequestParam("money") Double money);
}
